import PipeGroupManager from "./pipe_group_manager";

// 游戏状态
export enum GAME_STATE {
    IDLE = 'Idle',
    GAMING = 'Gaming',
    OVER = 'Over'
}

// 小鸟状态
export enum BIRD_STATE {
    IDLE = 'idle',
    JUMP = 'jump',
    DROP = 'drop',
    DEAD = 'dead'
}

class Store {
    score: number
    state: GAME_STATE
    pipeManager?: PipeGroupManager

    constructor() {
        this.score = 0;
        this.state = GAME_STATE.IDLE;
        this.pipeManager = null;
    }
}

export default new Store();